import request from '@/utils/request'

// 更新申请状态
export function updateStatus(data) {
  return request({
    url: '/user/memberAuthority/updateStatus',
    method: 'post',
    data: data
  })
}

// 批量更新申请状态
export function batchUpdateStatus(data) {
  return request({
    url: '/user/memberAuthority/batchUpdateStatus',
    method: 'post',
    data: data
  })
}

/**
 * 更新企业批发自动授权提示 0：今日不显示 1：永久关闭
 */
export function updateWholesaleAutoAuthorityHint(query) {
  return request({
    url: '/user/memberAuthority/updateWholesaleAutoAuthorityHint',
    method: 'get',
    params: query
  })
}

//
export function countGradeWholesaler(enterpriseId) {
  return request({
    url: '/user/memberAuthority/doCountGradeWholesaler',
    method: 'get',
    params: {
      enterpriseId
    }
  })
}
